<html xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui" >  

    <!--    <h:body>-->
    <ui:composition template="layout.xhtml">-->

        <ui:define name="corpo">
            <h:form id="incluir_selo" acceptcharset="utf-8"> 
                <p:panel header="Cadastrar Selo">

                      <p:messages id="msg"/>

                    <fieldset>
                        <legend>Dados do Selo</legend>
                        <h:panelGrid columns="2"  border="0" styleClass="textAlignRight" columnClasses="textAlignRight"> 
                            <h:outputLabel value="Numeração: "/>
                            <p:inputText value="#{managerSelo.selo.numeracao}"
                                         id="numeracao_selo"
                                         required="true" 
                                         requiredMessage="O campo numeração deve ser preenchido "/>
                            <h:outputLabel value=" Cor: "/>  
                            <p:selectOneRadio id="selo" value="#{managerSelo.selo.tipoSelo}"  
                                              label="Cor" required="true" requiredMessage="A opção Cor deve ser selecionada">  
                                              <f:selectItems value="#{managerSelo.selectTipoSelo()}"/>                     
                            </p:selectOneRadio>
                        </h:panelGrid>
                    </fieldset>
                </p:panel>
                <br/>
                <center>
                    <p:commandButton id="submit" actionListener="#{managerSelo.alterar()}" icon="ui-icon-disk" value="ALTERAR" update="@form"/>
                </center>

               
            </h:form>
        </ui:define>
    </ui:composition>



</html>

